package com.it135.citytraffic.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.io.Serial;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 路段的分析缓存
 * </p>
 *
 * @author nask137
 * @since 2024-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("road_cache")
@AllArgsConstructor
public class RoadCache implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 路段名称
     */
    @TableId(value = "name", type = IdType.NONE)
    private String name;


    @TableField("crossing_id")
    private Long crossingId;
    /**
     * 路段的分析缓存
     */
    @TableField("analyse_cache")
    private String analyseCache;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
    /**
     * 路段的平均拥塞度
     */
    @TableField("status_average")
    private Double statusAverage;

    @TableField("reason_cache")
    private String reasonCache;

    @TableField("suggestion_cache")
    private String suggestionCache;
}
